﻿<Window x:Class="TVManager.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:app="clr-namespace:TVManager"
    Title="TV Manager" Height="800" Width="1000">
    <Grid>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>

            <Menu>
                <MenuItem x:Name="settingsMenu" Header="Settings" />
            </Menu>

            <TabControl Grid.Row="1">
                <TabItem Header="Series">
                    <Grid x:Name="mainGrid">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>

                            <StackPanel Orientation="Horizontal">
                                <Button x:Name="importFolderButton" Content="Import Folder(s)" Margin="5" />
                                <Button x:Name="updateSeriesButton" Content="Update Selected Series" Visibility="Collapsed" Margin="5" />
                            </StackPanel>

                            <Border Grid.Row="1" BorderBrush="LightGray" BorderThickness="0,1,0,0">
                                <Grid x:Name="seriesGrid">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="200" />
                                        <ColumnDefinition Width="3" />
                                        <ColumnDefinition Width="*" />
                                    </Grid.ColumnDefinitions>

                                    <ListBox x:Name="seriesListBox" Margin="3" DisplayMemberPath="SeriesName" SelectionMode="Extended" />
                                    <GridSplitter Grid.Column="1" Height="Auto" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"  />

                                    <app:TVSeriesControl x:Name="seriesControl" Margin="10" Grid.Column="2" />

                                </Grid>
                            </Border>
                        </Grid>


                    </Grid>
                </TabItem>
                <TabItem Header="Movie Images">
                    <app:MoviesFanartControl />
                </TabItem>
                <TabItem Header="Watched Seasons">
                    <app:WatchedSeasonsControl />
                </TabItem>
            </TabControl>
        </Grid>
        <app:StatusControl x:Name="statusControl" />
    </Grid>
</Window>
